package it.dgtest.client.datasource;

import com.google.gwt.user.client.Command;
import com.oa.gform.client.ui.datamodel.GDataSourceParam;
import com.oa.gform.client.ui.datamodel.ListItem;
import com.oa.gform.client.ui.datasource.GItemsDataSourceImpl;

public class ProvinceDataSource extends GItemsDataSourceImpl<Long,String,Long> {
	
	
	@Override
	public void loadData(GDataSourceParam  param, Command callback) {
		data.add(new ListItem<Long,String,Long>(new Long(1l),"Roma",null));
		data.add(new ListItem<Long,String,Long>(new Long(2l),"Torino",null));
		data.add(new ListItem<Long,String,Long>(new Long(3l),"Firenze",null));
		
		if (callback!=null) callback.execute();
	}

	

}
